# 1.控制台输入剪刀、石头、布
# 2.拳头赢剪刀  剪刀赢布  布赢拳头
import random

num = 0
player = int(input("请出拳:1石头,2剪刀,3布:"))
cumputer = random.randint(1, 3)
print("你出的是%d,电脑出的是%d" % (player, cumputer))

if ((player == 1 and cumputer == 2)
        or (player == 2 and cumputer == 3)
        or (player == 3 and cumputer == 1)):
    print("你赢了")
elif player == cumputer:
    print("平局")
else:
    print("电脑胜")
